package admrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/pcl/admin/stewardservicehandler"
	"yundian/internel/app/middlewares"
	"yundian/internel/pkg/dingo"
)

func InitRoom() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		s := g.Group("room")
		s.Use(middlewares.JwtAuthMiddleware)
		s.POST("type-list", stewardservicehandler.HandleGetStewardRoomTypeList)                     // 类型列表
		s.POST("type-not-paging-list", stewardservicehandler.HandleGetStewardRoomTypeNotPagingList) // 类型列表
		s.POST("type-insert", stewardservicehandler.HandleGetStewardRoomTypeInsert)                 // 类型新增
		s.POST("type-update", stewardservicehandler.HandleGetStewardRoomTypeUpdate)                 // 类型更新
		s.POST("type-delete", stewardservicehandler.HandleGetStewardRoomTypeDelete)                 // 类型删除

		s.POST("order-list", stewardservicehandler.HandleGetStewardRoomOrderList)       // 订单列表
		s.POST("set-room-order-status", stewardservicehandler.HandleSetRoomOrderStatus) // 设置订单状态-是否已入住
		s.POST("set-batch-device-room", stewardservicehandler.HandleSetBatchDeviceRoom) // 批量设置设备房间
		s.POST("set-batch-place-room", stewardservicehandler.HandleSetBatchPlaceRoom)   // 批量导入门店房间
	}
}
